package be.jabapage.util;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

/**
 * 
 * Singleton for the PersistenceManagerFactory.
 * @author axesq
 *
 */
public final class PMF {
	private static final PersistenceManagerFactory PMF_INSTANCE = JDOHelper.getPersistenceManagerFactory("transactions-optional");

	/**
	 * default private constructor.  This is a utility class.
	 */
	private PMF() {}

	/**
	 * @return the singleton for the PersistenceManagerFactory.
	 */
	public static PersistenceManagerFactory get() {
		return PMF_INSTANCE;
	}
}
